{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<strong>库存盘点</strong>
		</li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div style="width:240px">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加库存</a>
				</div>
			</div>
		</div>
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">	
			<div class="form-group" style="padding-left: 20px;">
					单号 <input type="text" id="sn" name="sn" value="" placeholder="请输入单号" class="bank" />
					操作员 <input type="text" id="czy" name="czy" value="" placeholder="请输入操作员" class="bank" />
		     		状态 <select  name="status" class="bank" >
                            <option value="0">请选择状态</option>
                            <option value="1">在售</option>
                            <option value="2">未上线</option>
                        </select>
					<span class="bank"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
			</div>
		</from>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
				<div class="example">				
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">    
                            	<th>盘点店铺</th>
                                <th>盘点单号</th>
                                <th>整体盘盈</th>
                                <th>整体盘亏</th>
                                <th>库存数量</th>
								<th>操作员</th>
								<th>更新时间</th>
								<th>状态</th>
								<th>备注</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list" style="text-align: center;">
                        	{volist name="list" id="vo"}
                        	   <tr>
                        	   	<td>{$vo.store_name}</td>
                        	   	<td>{$vo.sn}</td>
                        	   	<td>{$vo.stock_win}</td>
                        	   	<td>{$vo.stock_lose}</td>
                        	   	<td>{$vo.count}</td>
                        	   	<td>{$vo.czy}</td>
                        	   	<td>{$vo.update_time}</td>
                        	   	<td>{if $vo.status==1}在售
                        	   		{elseif $vo.status==2}未上线
                        	   		{/if}
                        	   	</td>
                        	   	<td>{$vo.memo}</td>
                        	   	<td>                        	   		
									<a href="{:url('edit',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									<a href="{:url('delete',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>                      	   		
                        	   	</td>
                        	   </tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}